package com.zqh.apiuserregister.controller;


import com.zqh.apiuserregister.service.UserRegisterService;
import com.zqh.myfmmall.result.Result;
import com.zqh.myfmmall.rowbeans.entity.Users;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * 用户 (Users)表控制层
 *
 * @author KONO 曾淇杭哒！
 * @since 2022-01-20 02:35:22
 */
@RestController
@RequestMapping("user")
public class UserRegisterController{
    @Resource
    private UserRegisterService userRegisterService;

    @PostMapping("register")
    public Result register(@RequestBody Users user) {
        return userRegisterService.register(user);
    }

}

